package com.co.utils;

import java.awt.event.*;
import java.awt.*;

public class MakeEnterDoAction extends KeyAdapter {
	public void keyPressed(KeyEvent ke)
	{
		if (ke.getKeyCode() == KeyEvent.VK_ENTER) 
		{
			Object src = ke.getSource();
			Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new ActionEvent(src, ActionEvent.ACTION_PERFORMED, "Enter"));
		}
	} // end keyPressed()
} // end class